package simulation.bankSim;

import java.util.Date;
import java.util.Map;

/*
 * 信息类
 * 
 * */
public class Message {
	private boolean status; // 状态
	private Account account; // 成功后返回的账户类
	private String msg; // 若失败显示的信息
	private Date date; // 记录时间
	
	public Message(boolean status, Account account, Date date) {
		super();
		this.status = status;
		this.account = account;
		this.date = date;
	}
	
	public Message(boolean status, String msg, Date date) {
		super();
		this.status = status;
		this.msg = msg;
		this.date =date;
	}

	public boolean isStatus() {
		return status;
	}

	public void setStatus(boolean status) {
		this.status = status;
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

	public String getMsg() {
		return msg;
	}

	public void setMsg(String msg) {
		this.msg = msg;
	}

	public Date getDate() {
		return date;
	}

	public void setDate(Date date) {
		this.date = date;
	}
	
	
	
}
